package com.budwk.app.fastDfs.service;

import com.budwk.app.oss.models.SysOss;
import com.budwk.starter.database.service.BaseService;
import org.nutz.mvc.upload.TempFile;

import java.io.File;

/**
 * @author ZY.Wang
 * @since 2024/3/6
 */
public interface FastDfsService extends BaseService<SysOss> {

    //--通过TempFile上传文件-----------------------------------------
    SysOss upload(TempFile file);

    SysOss upload(TempFile file, String fileName);

    SysOss uploadNotUUID(TempFile file, String fileName);

    SysOss upload(TempFile file, String fileName, boolean uuidFlag);

    //--通过byte[]上传文件-----------------------------------------
    SysOss upload(byte[] bytes, String fileName);

    SysOss upload(byte[] bytes, String fileName, boolean uuidFlag);

    //--通过上传file上传文件----------------------------------------
    SysOss upload(File file);

    SysOss upload(File file, String fileName);

    SysOss upload(File file, String fileName, boolean uuidFlag);
}
